package com.voicechat.firstmet.net;

/**
 * Created 网络请求接口地址
 */

public class HTTPAPI {
    //郑先锋
     //public static final String BASE_URL = "http://192.168.199.198:8080";
    /*本机服务器（开源）*/
   // public static final String BASE_URL = "http://192.168.199.161:8080";
    /*测试服务器(陶冶)*/
   // public static final String BASE_URL = "http://192.168.199.238:8080";
   //测试服
    public static final String BASE_URL = "https://www.chujian.live:1000";
    //正式服
   // public static final String BASE_URL = "https://yinyinyuliao.com";

    //长链接地址本机（开源）
  // public static final String BASE_WS = "ws://192.168.199.161:8080/faint-app/ws?userId=";
    //长链接地址测试服
    public static final String BASE_WS = "wss://www.chujian.live:1000/faint-app/ws?userId=";
    //长链接地址正式
   // public static final String BASE_WS = "wss://www.yinyinyuliao.com/faint-app/ws?userId=";
  // public static final String BASE_WS = "ws://21526o684t.imwork.net:16297/faint-app/ws?userId=";
    /**
     * app版本号
     */
    public static final String API_VERSION = "/faint-app/app/";
    //h5根地址测试
    public static final String URL_BASE = "https://www.chujian.live:1000";
    /**
     * 支付接口版本号
     */
    public static final String API_VERSION_PAY = "/faint-service/f/";
    //h5根地址正式
    //正式服
    //public static final String URL_BASE = "https://www.chujian.live";
    //public static final String URL_BASE = "https://yinyinyuliao.com";
   // public static final String URL_BASE = "http://192.168.199.146:8020";
    //认证主播
    public static final String URL_ANCHOR = "/faint-service/static/h5/banner/agent.html";
    //邀请好友
    public static final String URL_FRIENDS = "/faint-service/static/h5/invitation/money.html";
    //分享https://www.chujian.live:1000/faint-service/static/h5/share-dynamic/index.html?id=帖子id&userId=用户id
    public static final String URL_SHARE = URL_BASE+"/faint-service/static/h5/share-dynamic/index.html?";
   // public static final String URL_FRIENDS = "/%e7%be%8e%e5%88%80%e7%a7%91%e6%8a%80/12.4%20%E9%82%80%E8%AF%B7%E6%96%B0%E7%94%A8%E6%88%B7%E6%B4%BB%E5%8A%A8/money.html";
    //h5充值
    public static final String URL_RECHARGE = URL_BASE+"/faint-service/static/h5/app/rechargeh5.html?";
    //h5充值会员
    public static final String URL_MEMBER = URL_BASE+"/faint-service/static/h5/app/memberh5.html?";
    /**
     * @method
     * @description 服务器返回码
     * @date: 2018/9/18 20:14
     * @author: ljp
     * @return
     */
    public interface  RETURN_CODE_TYPE {
        /**
         * 成功
         */
        int RETRUN_SUCCESS              = 200;
       // public final static String  RETRUN_SUCCESS_MSG          = "成功";
        /**
         * 错误
         */
        int RETRUN_FAIL                 = 300;
       // public final static String  RETRUN_FAIL_MSG             = "失败";
        /**
         * 验证码超时
         */
        int RETRUN_OVERTIME             = 1000;
        //public final static String  RETRUN_OVERTIME_MSG         = "验证码超时";
        /**
         * 该手机号码已经被使用
         */
        int RETRUN_USE                  = 1001;
        //public final static String  RETRUN_USE_MSG              = "手机号码已经被使用";
        /**
         * 该手机号码不存在
         */
        int RETRUN_EXISTENCE            = 1002;
       // public final static String  RETRUN_EXISTENCE_MSG        = "手机号不存在,请前往注册";

        int LOGIN_OVERTIME              = 1004;
        //public final static String  LOGIN_REGISTER_OVERTIME_MSG = "登录用户不存在,请前往注册";
        /**
         * 第三方账号不存在
         */
        int RETURN_THIRD_OVERTIME       = 1005;
        //public final static String  RETURN_THIRD_OVERTIME_MSG   = "第三方账号不存在";
        //int RETURN_CODE_REGISTER = 1006;  //用户未被注册且验证码发送成功
        /**
         * 用户信息未完善
         */
        int RETURN_NO_INFODATA       = 1010;
        /**
         * 实名认证未通过
         */
        int RETURN_NO_REALNAME      = 1030;
        /**
         * 实名认证审核中
         */
        int RETURN_NO_REALNAME_      = 1040;
        /**
         * 金币余额不足
         */
        int RETURN_NO_GOLD       = 1011;
        /**
         * token失效
         */
        int RETURN_NO_TOKEN       = 403;
        /**
         * 自己下线
         */
        int RETURN_NO_LINE       = 2011;
    }
}
